# -*- coding: utf-8 -*-

from django.db import models

class sshconfig(models.Model):
    ip = models.CharField(u"主机IP", max_length=64)
    username =  models.CharField(u"用户名", max_length=64)
    password = models.CharField(u"用户密码", max_length=64)
    sshport = models.CharField(u"ssh端口", max_length=64)
    cmd = models.CharField(u"执行命令", max_length=1024)
    mark = models.CharField(u"唯一标识",max_length=64)

    def __unicode__(self):
        return self.ip

    class Meta:
        verbose_name = u"ssh配置信息"
        verbose_name_plural = u"ssh配置信息"